package cn.juque.systemservice.api.constant;

import cn.juque.common.constants.BaseMessageEnum;

/**
 * @author nuoka
 * @version 1.0.0
 * <li>IntelliJ IDEA</li>
 * <li>cn.juque.systemservice.api.constant</li>
 * @date 2020/7/12 21:12
 **/
public enum SystemServiceMsgEnum implements BaseMessageEnum {

    /**
     * enum
     */
    PASS_CONFIRM_ERROR("000410002", "二次密码验证失败"),
    PASS_ERROR("000410003", "用户名或密码错误"),
    PARAM_NULL("0041004", "入参不能为空"),
    PARAM_ERROR("0041005", "入参错误"),
    SYSTEM_ERROR("0004500", "服务异常"),
    SYSTEM_FAIL("0004501", "服务操作失败"),
    ORG_PARAM_CONFLICT("00041000", "机构参数编码冲突"),
    USER_MISSING("00041006", "用户信息丢失"),
    ROLE_REL_AUTH_DATA_MISSING("00041007", "角色与权限的关系丢失"),
    TEL_OR_MAIL_EXIST("00041008", "手机号或邮箱号已被占用"),
    GET_GEN_ERROR("00041009", "获取主键信息异常"),
    ORG_CODE_EXIST("00041010", "机构编码已被占用"),
    EMPLOYEE_DISABLED("00041011", "帐号不可用"),
    ;

    /**
     * 消息码
     */
    private String code;

    /**
     * 消息
     */
    private String msg;

    SystemServiceMsgEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
